import { ConsultationController } from '@/controller/ConsultationController';

export const Consultation = [
  {
    method: 'get',
    route: '/consultation',
    controller: ConsultationController,
    action: 'findAll',
  },
  {
    method: 'get',
    route: '/consultation/:id',
    controller: ConsultationController,
    action: 'findAllByUser',
  },
  {
    method: 'post',
    route: '/consultation',
    controller: ConsultationController,
    action: 'createMessageForUser',
  },
  {
    method: 'delete',
    route: '/consultation/:id',
    controller: ConsultationController,
    action: 'clearMessageForUser',
  },
];
